<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>{block name="title"}{/block}</title>
	<meta name="keywords" content="{block name="keywords"}{/block}" />
	<meta name="description" content="{block name="description"}{/block}" />
	<link rel="stylesheet" href="__indexstatic__/layui/css/layui.css">
	<link rel="stylesheet" href="__indexstatic__/layui/css/global.css">
	<link rel="stylesheet" href="__indexstatic__/layui/css/index.css">
</head>
<script>
	window.onload = function ()
	{
		var oH2 = document.getElementById("mnavh"); 
		var oUl = document.getElementById("starlist");  
		oH2.onclick = function ()
		{
			var style = oUl.style;
			style.display = style.display == "block" ? "none" : "block";
			oH2.className = style.display == "block" ? "open" : ""
		}
	}
</script>
<body>
	<header>
		<div id="mnav">
			<div class="logo"><a href="/">{$info['webname']}</a></div>
			<h2 id="mnavh"><span class="navicon"></span></h2>
			<ul id="starlist">
			{volist name='nav' id='nav'}
				<li class="layui-icon"><a href="{:URL($nav.url)}">{$nav.navname}</a></li>
			{/volist}
			{volist name='navi' id='navi'}
				<li class="layui-icon"><a href="{:URL('/article/'.$navi.id)}">{$navi.title}</a></li>
			{/volist}
			</ul>
		</div>
	</header>
	<div class="notice">
		<div class="twitter"><div class=" icol"><i class="layui-icon" style="font-size: 1.2em">&#xe645;</i></div>{$twitter['content']|strip_tags|mb_substr=0,18,'utf-8'}...</div>
	</div>
	<div class="layui-container">
	<div class="layui-row layui-col-space15">
		<!-- 内容主体区域 -->
		{block name="content"}
		{/block}
			<div class="layui-col-md4">
				<div class="fly-panel txtcen">
					<h3 class="fly-panel-title meinfo">关于我</h3>
					<div class="blog-face"><img src="__indexstatic__/images/face.png"></div>
					<div class="userinfo">
						<li>网名:{$user['nickname']}</li>
						<li>签名:{$user['autograph']}</li>
						<li>邮箱:{$user['email']}</li>
					</div>
				</div>


				<div class="fly-panel fly-signin">
					<div class="fly-panel-main fly-signin-main">
						<form action="{:URL('/search')}" method="post">
							{:token()}
							<input type="text" name="key" required lay-verify="required" placeholder="发现更多" class="layui-input search-txt"><button class="layui-btn search-but">搜索</button>
						</form>
					</div>
				</div>

				<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe609;</i>推荐文章</h3>
					<div class="tuijian">
						<ul>
							{volist name="topartice" id="topartice"}
							<li><a href="{:URL('/article/'.$topartice.id)}">{$topartice.title}</a></li>
							{/volist}
						</ul>
					</div>
				</div>
				<div class="fly-panel fly-link">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe600;</i>文章分类</h3>
					<dl class="fly-panel-main">
						{volist name="category" id="category"}
						<dd><a href="{:URL('/category/'.$category.id)}">{$category.name}</a><dd>
						{/volist}
					</dl>
				</div>

				<div class="fly-panel">
					<div class="fly-panel-title toparticle">
						<i class="layui-icon ico">&#xe735;</i>支持我们
					</div>
					<div class="fly-panel-main">
						<a href="" target="_blank" class="fly-zanzhu" style="background-color: #5FB878;">可以放广告</a>
					</div>
				</div>

				<div class="fly-panel fly-link">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe64d;</i>友情链接</h3>
					<dl class="fly-panel-main">
						{volist name="link" id="link"}
						<dd><a href="{$link.url}" target="_blank">{$link.name}</a><dd>
						{/volist}
						<dd><a href="{:URL('/links')}" class="fly-link">申请友链</a><dd>
					</dl>
				</div>
</div>
	</div>
	<div class="fly-footer">
		<p><a href="http://warss.cn/" target="_blank">Xiele-淡墨</a> 2018 &copy;{$info['kor']}
		<p><a href="javascript:;" onclick="good()">捐助赞赏</a>{$info['bottom']}
	</div>
<script src="__indexstatic__/layui/layui.js"></script>
{block name="jssrc"}
{/block}
<script>
layui.use(['layer', 'form', 'element'], function(){
	var layer = layui.layer
	,form = layui.form;
});
layui.use('util', function(){
	var util = layui.util;

  //执行
  util.fixbar({
  	bgcolor:'#333',
  	bar1: true
  	,click: function(type){
  		if(type === 'bar1'){
  			layer.msg('分享美好时光')
  		}
  	}
  });
});
function good(){
	layer.open({
		title:'赞赏',
		type: 1,
  	area: ['300px', '443px'], //宽高
  	content: '<img src="__indexstatic__/images/good.png">'
  });
}
</script> 
</body>
</html>
